message(STATUS "Enter IEC61162 folder")
set(MODULE_IEC61162 IEC61162)

FIND_PACKAGE(Qt5Core)
FIND_PACKAGE(Qt5SerialPort)
FIND_PACKAGE(Qt5Network)

set(CMAKE_AUTOMOC ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -utf-8") 


SET(LIBRARY_OUTPUT_PATH "${PROJECT_BINARY_DIR}/lib")
aux_source_directory(. DIR_LIB_SRCS)
add_library (${MODULE_IEC61162} STATIC ${DIR_LIB_SRCS})
target_link_libraries (${MODULE_IEC61162} PRIVATE  Qt5::Core Qt5::SerialPort Qt5::Network)

include_directories(${CMAKE_SOURCE_DIR}/ThirdParty/spdlog)
include_directories(${CMAKE_SOURCE_DIR}/CommonUtils)


LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lib)		

set(LIBS CommonUtils spdlog)
target_link_libraries(${MODULE_IEC61162} PRIVATE ${LIBS})